{% extends "base.html" %}
{% block title %} Node {% endblock %}
{% block body_main %}
<p>
  <a href="{% url da.views.node_read_path  object.pk %}"> <button type="button" {% if mode = '0' %} disabled="disabled" {% endif %}> Path </button> </a>
  <a href="{% url da.views.node_read_tree  object.pk %}"> <button type="button" {% if mode = '1' %} disabled="disabled" {% endif %}> Tree </button> </a>
  <a href="{% url da.views.node_read_graph object.pk %}"> <button type="button" {% if mode = '2' %} disabled="disabled" {% endif %}> Graph </button> </a>
</p>
<hr/>
<p>
 {% for i in object.get_fullpath %}
  <a href="{% url da.views.node_read i.pk %}"> {{ i.name }} </a>
  {% if not forloop.first %} / {% endif %}
 {% endfor %}
 {{ object.name }}:
 <button type="button"> Rename </button>
 <button type="button"> Delete </button>
</p>
{% block node_draw %}
{% endblock %}
<form method='post', action='{% url da.views.node_add %}?next={{ next }}'>
 {% csrf_token %}
 <table>
 {{ form.as_table }}
 <tr> <td/> <td align="center"> <button type="submit" width="100%"> Add </button> </td> </tr>
 </table>
</form>
{% endblock %}
